<?php 
namespace Home\Model;
use Think\Model;
class VerifyModel extends Model {

	public function getRandOne()
	{
		$sql = "select * from verify order by rand() limit 1";

    	$row = M()->query($sql);

    	$row = current($row);

    	$_SESSION['answer'] = $row['answer'];

    	return $row['question'];
	}
}


 ?>